import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
    
      component:()=>import('../views/LoginView.vue')
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue')
    },

    {
      path: '/memberAdd',
    
      component:()=>import('../views/MemberAdd.View.vue')//会员添加
    },


    {
      path: '/memberList',
      component:()=>import('../views/MemberListView.vue')//会员列表
    },

    {
      path: '/membserLebel',
      component:()=>import('../views/MembserLebelView.vue')//会员等级添加
    },
    {
      path: '/membserLebelList',
      component:()=>import('../views/MembserLebelListView.vue')//会员等级列表
    },


    {
      path: '/memberUpd',
      component:()=>import('../views/MemberUpd.vue')//会员修改
    },


    {
      path: '/membserRightList',
      component:()=>import('../views/MembserRightList.vue')//权益添加
    },

    {
      path: '/membserRightAdd',
      component:()=>import('../views/MmberRightAdd.vue')//权益列表
    },

    {
      path: '/shopList',
      component:()=>import('../views/ShopList.vue')//权益列表
    },

    {
      path: '/shopAdd',
      component:()=>import('../views/ShopAdd.vue')//权益列表
    },

    {
      path: '/ShopUpdate',
      component:()=>import('../views/ShopUpdate.vue')//权益列表
    }


    ,

    {
      path: '/discountList',
      component:()=>import('../views/DiscountList.vue')//优惠卷列表
    }
    ,
    {
      path: '/DiscountAdd',
      component:()=>import('../views/DiscountAdd.vue')//优惠卷列表
    }

    ,
    {
      path: '/houseTypeList',
      component:()=>import('../views/HouseTypeList.vue')//优惠卷列表
    }


    ,
    {
      path: '/houseTypeAdd',
      component:()=>import('../views/HouseTypeAdd.vue')//优惠卷列表
    }


    ,
    {
      path: '/houseUpd',
      component:()=>import('../views/HouseUpd.vue')//优惠卷列表
    }


    ,
    {
      path: '/houseNoList',
      component:()=>import('../views/HouseNoList.vue')//优惠卷列表
    }

    ,
    {
      path: '/houseNoAdd',
      component:()=>import('../views/HouseNoAdd.vue')//优惠卷列表
    }

    ,
    {
      path: '/housePriceAdd',
      component:()=>import('../views/HousePriceAdd.vue')//优惠卷列表
    }

    ,
    {
      path: '/housePriceList',
      component:()=>import('../views/HousePriceList.vue')//优惠卷列表
    }

    ,
    {
      path: '/housePriceUpd',
      component:()=>import('../views/HousePriceUpd.vue')//优惠卷列表
    }

    ,
    {
      path: '/testHouseAdd',
      component:()=>import('../views/TestHouseAdd.vue')//优惠卷列表
    }


    ,
    {
      path: '/testHouseList',
      component:()=>import('../views/TestHouseList.vue')//优惠卷列表
    }

    ,
    {
      path: '/testHouseUpd',
      component:()=>import('../views/TestHouseUpd.vue')//优惠卷列表
    }

    
  ]
})

export default router
